<!-- common start -->
#include("common.html")
<!-- common end -->
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,user-scalable=0,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<title>商品列表页</title>
<link rel="stylesheet" type="text/css" href="#(tpath)/static/css/css.css">
<script type="text/javascript" src="#(tpath)/static/js/jquery.min.js"></script>
<script type="text/javascript" src="#(tpath)/static/js/global.js"></script>
</head>
<body>
    <div id="wrapper">
        <!-- header start -->
        <div id="header">
           <a href="#(base)/" class="home"></a>
           <em>#(currentCategory.name)</em>
           <a href="#" onclick="$(&quot;#catalog&quot;).toggle();" class="siteMap"></a>
        </div>
         #include("header.html")
        <!-- header end -->

            <div class="treeBox">
                #category_children_list(categoryId=1)
                #for(category : categorys)
                <a href="#(category.path)">#(category.name)</a>
                #end
                #end
           </div> 
 <div id="productCat">
 #content_page(categoryId = currentCategory.id,pageNumber = pageNumber,pageSize = 10)
  <div class="productList">
    #for(content : contentPage.list)
     <dl>
    <dd>
    <p class="img"><a href="#(content.path)"><img src="#(content.image)" width="135" height="135" /></a></p>
    <p class="name"><a href="#(content.path)">#(abbreviate(content.title,5,"..."))</a></p>
     </dd>
   </dl> 
   #end
  
     </div>
                #pagination(pageNumber = contentPage.pageNumber,totalPages = contentPage.totalPage,pattern = currentCategory.path+"?pageNumber=")
                        #include("page.html")
                     #end
  #end
  </div>
<!-- footer start -->
#include("footer.html")
<!-- footer end -->

</div>
</body>
</html>